package io.hepu.robotize.page;

import java.io.Serializable;
import java.util.List;

public class PageResponse<T> implements Serializable {
    private List<T> elements;
    private long total;
    private int page;
    private int size;

    public PageResponse() {
    }

    public PageResponse(List<T> elements, long total, int page, int size) {
        this.elements = elements;
        this.total = total;
        this.page = page;
        this.size = size;
    }

    public List<T> getElements() {
        return elements;
    }

    public long getTotal() {
        return total;
    }

    public int getPage() {
        return page;
    }

    public int getSize() {
        return size;
    }
}
